const router = require('express').Router()

const authController = require('../controller/authController')
const validator = require('../middleware/validate')
const { userValidator } = require('../model/user')
// 登录
router.post('/', validator(userValidator), authController.login)

module.exports = router